Skip to content

Comments

Respuestas problemas 1 y 2#5

Open
pasanchez wants to merge 6 commits intohectorcanto:mainfrom
pasanchez:main
Open

Respuestas problemas 1 y 2#5
pasanchez wants to merge 6 commits intohectorcanto:mainfrom
pasanchez:main

Conversation

@pasanchez
Copy link

No description provided.

- Postgres version: 15.0
- Data Volume (aka PGDATA): /var/lib/postgresql/data
- default entrypoint: docker-entrypoint.sh
- default command: ["/bin/sh","-c","#(nop) ", "CMD [\"postgres\"]"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, é suficient con postgres, o resto é cacharrería interna de docker (agás o CMD)

Copy link
Owner

@hectorcanto hectorcanto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 par de detalles, pero en xeral ben. revisa o das imaxes de NGINX

- baseline consumption : CPU ___% MEM ___MB
- OS: Distro Version Codename (Ubuntu 22.04 jammy)
- Image Size: 377Mb
- Container Name: festive_heisenberg
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recoméndoche nomear os containers

- default entrypoint: docker-entrypoint.sh
- default command: ["/bin/sh","-c","#(nop) ", "CMD [\"postgres\"]"]
- baseline consumption : CPU 0.00% MEM 940KiB
- OS: Debian 15.0-1.pgdg110+1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o sistema operativo é Debian 11, pódese mirar dentro do container con more /etc/issue/

docker ps
docker image inspect postgres:latest

#Dentro del contenedor:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gracias polas aclaracións, queda máis lexible

docker pull
docker pull postgres:latest
docker image ls postgres
docker run -it -e POSTGRES_HOST_AUTH_METHOD=trust --entrypoint /bin/bash postgres
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o entrypoint aquí non impide lanzar un comando así que podes entrar con /bin/bash (non se lanzará o postgres pero non nos importa), ou lanzar e entrar despois con docker exec -it container_name /bin/bash

@@ -1 +1,4 @@
docker pull No newline at end of file
docker image pull nginx:1.22.1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Baixaches a mesma imaxe 3 veces. Fíxate na IMAGE ID

En cada liña viñan varios tags para a mesma imaxe, pero cada liña é diferent
Terías que ter collido 1 por cada liña para obter a normal, perl, alpine e alpine perl
Proba outra vez se queres.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants